<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="utf-8">
    <title>上传文件</title>
    <link rel="stylesheet" href="../static/layui/css/layui.css" />
  </head>
  <body>
    <div style="margin: 20px;">
      <h2><strong>文件上传</strong></h2>
      <a th:if="${uploadStatus}" style="color:red;" th:text="${uploadStatus}"></a>
      <form th:action="@{/uploadFile}" method="post" enctype="multipart/form-data" style="margin: 20px;">
        <input type="hidden" th:value="${token}" id="token" name="token">
        <input type="file" name="file" />
        <hr />
        <button type="submit" class="layui-btn">Submit</button>
      </form>
    </div>
  </body>
</html>
